﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SearchSparePart.aspx.cs" Inherits="WXYW.SearchSparePart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    备件查询
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table width="100%" cellpadding="0px" cellspacing="0px" border="0px" style="line-height: 30px">
        <tr>
            <td>
                物料号：
            </td>
            <td>
                <asp:TextBox ID="materialNumberTxtBox" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td>
                产品型号：
            </td>
            <td>
                <asp:TextBox ID="modelNumberTxtBox" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td>
                版本号：
            </td>
            <td>
                <asp:TextBox ID="versionNumberTxtBox" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td>
                储存地：
            </td>
            <td>
                <asp:DropDownList ID="platformDropdownList" runat="server" Width="150px">
                </asp:DropDownList>
            </td>
            <td>
                良品/非良品：
            </td>
            <td>
                <asp:DropDownList ID="badOrGoodDropdownList" runat="server" Width="150px">
                    <asp:ListItem Text="请选择" Value="请选择"></asp:ListItem>
                    <asp:ListItem Text="良品" Value="良品"></asp:ListItem>
                    <asp:ListItem Text="非良品" Value="非良品"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="searchButton" runat="server" Text="查询" Width="80px" OnClick="searchButton_Click" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="resultGridView" runat="server" AutoGenerateColumns="False" CssClass="tableList"
        Width="100%" onrowdatabound="resultGridView_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="MaterialNO" HeaderText="物料号">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="ModelNumber" HeaderText="产品型号">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="VersionNumber" HeaderText="版本号">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="GoodCount" HeaderText="良品数">
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="BadCount" HeaderText="非良品数">
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Station" HeaderText="储存地">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="SparePartPrice" HeaderText="备件价格">
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
        </Columns>
    </asp:GridView>
</asp:Content>
